<!DOCTYPE html>
<html lang="zh-cn">
<head>
{include file="public/header" /}
</head>
<body onload="showTime();">
<div class="panel admin-panel">
  <div class="panel-head"><strong><span class="icon-mg-info"></span> 网站信息</strong></div>
  <div class="body-content">
    <div class="form-x">
      <div class="form-group">
        <div class="label">
          <label for="sitename">服务器系统：</label>
        </div>
        <div class="field">
          <label style="line-height:33px;">
           <?php echo php_uname('s');  ?>
          </label>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label for="sitename">ThinkPHP版本：</label>
        </div>
        <div class="field">
          <label style="line-height:33px;">
           <?php echo THINK_VERSION; ?>
          </label>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label for="sitename">WEB运行环境：</label>
        </div>
        <div class="field">
          <label style="line-height:33px;">
           <?php echo function_exists('apache_get_version')?apache_get_version():$_SERVER["SERVER_SOFTWARE"];  ?>
          </label>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label for="sitename">运行PHP版本：</label>
        </div>
        <div class="field">
          <label style="line-height:33px;">
           <?php echo 'PHP'.phpversion();?>
          </label>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label for="sitename">上传大小限制：</label>
        </div>
        <div class="field">
          <label style="line-height:33px;">
           <?php echo ini_get('upload_max_filesize');?>
          </label>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label for="sitename">POST大小限制：</label>
        </div>
        <div class="field">
          <label style="line-height:33px;">
           <?php echo ini_get('post_max_size');?>
          </label>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label for="sitename">樱桃设计-版本：</label>
        </div>
        <div class="field">
          <label style="line-height:33px;">
           v-0.1
          </label>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label for="sitename">北京时间：</label>
        </div>
        <div class="field">
          <label style="line-height:33px;">
           <div class="content1">
            <div id="show">显示时间的位置</div>
          </div
          </label>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label for="sitename">服务器域名/IP：</label>
        </div>
        <div class="field">
          <label style="line-height:33px;">
           <a href="<?php echo DOM;?>" target="_blank"><?php echo DOM;?></a>
          </label>
        </div>
      </div>
    </div>
  </div>
</div>
<script language="javascript" type="text/javascript">
  function checkTime(i){  //补位处理
    if(i<10){i="0"+i;}return i;}
  function showTime(){
    var now=new Date();
    var year=now.getFullYear();
    var month=checkTime(now.getMonth()+1); //js获取的月份是从0开始；
    var day=checkTime(now.getDate());
    var h=checkTime(now.getHours());
    var m=checkTime(now.getMinutes());
    var s=checkTime(now.getSeconds());

    var weekday=new Array(7)
    weekday[0]="星期日"
    weekday[1]="星期一"
    weekday[2]="星期二"
    weekday[3]="星期三"
    weekday[4]="星期四"
    weekday[5]="星期五"
    weekday[6]="星期六"
    var w=weekday[now.getDay()]; //js获取的星期是0~6,0是星期天；
    document.getElementById("show").innerHTML=""+year+"年"+month+"月"+day+"日  "+w+"    "+h+":"+m+":"+s;
    t=setTimeout('showTime()',1000)
  }
</script>
</body>
</html>